var jCookies = {
	create: function(opts){
				if(!opts) opts = {};
				if(!opts.value) return;
				aName = opts.name || document.domain+"-jCookie";
				aDuration = opts.duration || 3600;
				date = new Date();
				date.setTime(date.getTime()+(24*60*60*aDuration));
				aDuration = date.toGMTString();
				aDomain = opts.domain || document.domain;
				aPath = opts.path || "/";
				document.cookie = aName +'='+ opts.value +'; expires='+ aDuration +'; path='+ aPath;
			},
	get: function(name){
			r = "";
			cooks = document.cookie.split(';');
			cooks.each(function(el){
							if(el.indexOf(name+"=") == 0){
								r = el.split('=')[1];
							}
						});
			return r;
		 },
	erase: function(name){
				r = false;
				jCookies.create({name: name, value: jCookies.get(name), duration: -3600});
				return r;
			}
}